package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the per_sly_set database table.
 * 
 */
@Entity
@Table(name="per_sly_set")
@NamedQuery(name="PerSlySet.findAll", query="SELECT p FROM PerSlySet p")
public class PerSlySet implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_SLY_SET_SETID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_SLY_SET_SETID_GENERATOR")
	private int setid;

	private String setname;

	private String setrem;

	private int setstat;

	private Timestamp settime;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp1;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="PER_EMPID")
	private PerPmsEmp perPmsEmp2;

	//bi-directional many-to-one association to PerPmsPot
	@ManyToOne
	@JoinColumn(name="POTID")
	private PerPmsPot perPmsPot;

	//bi-directional many-to-one association to PerSlySls
	@OneToMany(mappedBy="perSlySet")
	private List<PerSlySls> perSlySls;

	//bi-directional many-to-one association to PerSlyTsx
	@OneToMany(mappedBy="perSlySet")
	private List<PerSlyTsx> perSlyTsxs;

	//bi-directional many-to-one association to PerSlyYxz
	@OneToMany(mappedBy="perSlySet")
	private List<PerSlyYxz> perSlyYxzs;

	public PerSlySet() {
	}

	public int getSetid() {
		return this.setid;
	}

	public void setSetid(int setid) {
		this.setid = setid;
	}

	public String getSetname() {
		return this.setname;
	}

	public void setSetname(String setname) {
		this.setname = setname;
	}

	public String getSetrem() {
		return this.setrem;
	}

	public void setSetrem(String setrem) {
		this.setrem = setrem;
	}

	public int getSetstat() {
		return this.setstat;
	}

	public void setSetstat(int setstat) {
		this.setstat = setstat;
	}

	public Timestamp getSettime() {
		return this.settime;
	}

	public void setSettime(Timestamp settime) {
		this.settime = settime;
	}

	public PerPmsEmp getPerPmsEmp1() {
		return this.perPmsEmp1;
	}

	public void setPerPmsEmp1(PerPmsEmp perPmsEmp1) {
		this.perPmsEmp1 = perPmsEmp1;
	}

	public PerPmsEmp getPerPmsEmp2() {
		return this.perPmsEmp2;
	}

	public void setPerPmsEmp2(PerPmsEmp perPmsEmp2) {
		this.perPmsEmp2 = perPmsEmp2;
	}

	public PerPmsPot getPerPmsPot() {
		return this.perPmsPot;
	}

	public void setPerPmsPot(PerPmsPot perPmsPot) {
		this.perPmsPot = perPmsPot;
	}

	public List<PerSlySls> getPerSlySls() {
		return this.perSlySls;
	}

	public void setPerSlySls(List<PerSlySls> perSlySls) {
		this.perSlySls = perSlySls;
	}

	public PerSlySls addPerSlySl(PerSlySls perSlySl) {
		getPerSlySls().add(perSlySl);
		perSlySl.setPerSlySet(this);

		return perSlySl;
	}

	public PerSlySls removePerSlySl(PerSlySls perSlySl) {
		getPerSlySls().remove(perSlySl);
		perSlySl.setPerSlySet(null);

		return perSlySl;
	}

	public List<PerSlyTsx> getPerSlyTsxs() {
		return this.perSlyTsxs;
	}

	public void setPerSlyTsxs(List<PerSlyTsx> perSlyTsxs) {
		this.perSlyTsxs = perSlyTsxs;
	}

	public PerSlyTsx addPerSlyTsx(PerSlyTsx perSlyTsx) {
		getPerSlyTsxs().add(perSlyTsx);
		perSlyTsx.setPerSlySet(this);

		return perSlyTsx;
	}

	public PerSlyTsx removePerSlyTsx(PerSlyTsx perSlyTsx) {
		getPerSlyTsxs().remove(perSlyTsx);
		perSlyTsx.setPerSlySet(null);

		return perSlyTsx;
	}

	public List<PerSlyYxz> getPerSlyYxzs() {
		return this.perSlyYxzs;
	}

	public void setPerSlyYxzs(List<PerSlyYxz> perSlyYxzs) {
		this.perSlyYxzs = perSlyYxzs;
	}

	public PerSlyYxz addPerSlyYxz(PerSlyYxz perSlyYxz) {
		getPerSlyYxzs().add(perSlyYxz);
		perSlyYxz.setPerSlySet(this);

		return perSlyYxz;
	}

	public PerSlyYxz removePerSlyYxz(PerSlyYxz perSlyYxz) {
		getPerSlyYxzs().remove(perSlyYxz);
		perSlyYxz.setPerSlySet(null);

		return perSlyYxz;
	}

}